package com.wuyixu.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Date;

import org.junit.experimental.theories.FromDataPoints;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
/**
 * 
 * 说明:预定类
 * @author 旭儿
 * 创建于: 2020年5月6日 上午11:35:31
 */
public class HouseOrder implements Serializable{
	private static final long serialVersionUID = 1L;
	
	private BigInteger oid;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date dates;//日期
	private String oname;//姓名
	private String tname;//类型
	private BigDecimal tprice;//价格
	private String phone;//电话
	private BigInteger tid;
	private String content;//备注
	public HouseOrder() {
		super();
		// TODO Auto-generated constructor stub
	}
	public HouseOrder(BigInteger oid, Date dates, String oname, String tname,
			BigDecimal tprice, String phone, BigInteger tid, String content) {
		super();
		this.oid = oid;
		this.dates = dates;
		this.oname = oname;
		this.tname = tname;
		this.tprice = tprice;
		this.phone = phone;
		this.tid = tid;
		this.content = content;
	}
	public BigInteger getOid() {
		return oid;
	}
	public void setOid(BigInteger oid) {
		this.oid = oid;
	}
	public Date getDates() {
		return dates;
	}
	public void setDates(Date dates) {
		this.dates = dates;
	}
	public String getOname() {
		return oname;
	}
	public void setOname(String oname) {
		this.oname = oname;
	}
	public String getTname() {
		return tname;
	}
	public void setTname(String tname) {
		this.tname = tname;
	}
	public BigDecimal getTprice() {
		return tprice;
	}
	public void setTprice(BigDecimal tprice) {
		this.tprice = tprice;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public BigInteger getTid() {
		return tid;
	}
	public void setTid(BigInteger tid) {
		this.tid = tid;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((content == null) ? 0 : content.hashCode());
		result = prime * result + ((dates == null) ? 0 : dates.hashCode());
		result = prime * result + ((oid == null) ? 0 : oid.hashCode());
		result = prime * result + ((oname == null) ? 0 : oname.hashCode());
		result = prime * result + ((phone == null) ? 0 : phone.hashCode());
		result = prime * result + ((tid == null) ? 0 : tid.hashCode());
		result = prime * result + ((tname == null) ? 0 : tname.hashCode());
		result = prime * result + ((tprice == null) ? 0 : tprice.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		HouseOrder other = (HouseOrder) obj;
		if (content == null) {
			if (other.content != null)
				return false;
		} else if (!content.equals(other.content))
			return false;
		if (dates == null) {
			if (other.dates != null)
				return false;
		} else if (!dates.equals(other.dates))
			return false;
		if (oid == null) {
			if (other.oid != null)
				return false;
		} else if (!oid.equals(other.oid))
			return false;
		if (oname == null) {
			if (other.oname != null)
				return false;
		} else if (!oname.equals(other.oname))
			return false;
		if (phone == null) {
			if (other.phone != null)
				return false;
		} else if (!phone.equals(other.phone))
			return false;
		if (tid == null) {
			if (other.tid != null)
				return false;
		} else if (!tid.equals(other.tid))
			return false;
		if (tname == null) {
			if (other.tname != null)
				return false;
		} else if (!tname.equals(other.tname))
			return false;
		if (tprice == null) {
			if (other.tprice != null)
				return false;
		} else if (!tprice.equals(other.tprice))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "HouseOrder [oid=" + oid + ", dates=" + dates + ", oname="
				+ oname + ", tname=" + tname + ", tprice=" + tprice
				+ ", phone=" + phone + ", tid=" + tid + ", content=" + content
				+ "]";
	}
	
}
